package com.jonou.springclouddemo.eurekaclient.controller;

import com.jonou.springclouddemo.eurekaclient.service.sayHello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class helloController {
    @Autowired
    sayHello hello;

    @RequestMapping("/hello")
    public String sayHello(String name){
        return "Hello"+hello.hello(name);
    }
}
